<body id="popupSearchHelp" onload="resize();">
<div id="popup_ask_a_question" class="pad_10px">
<div class="winHtmlDiv absolute flow" style="width: 600px; height: 540px; display: block;">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="winHtmlTable">
<tbody>

<tr>


<td class="skin_01">

<div class="winHtmlCon pad_10px flow" style="width: 480px; height: 520px;">
<?php echo zen_draw_form('ask_a_question', zen_href_link(FILENAME_POPUP_ASK_A_QUESTION, 'action=send&products_id=' . $_GET['products_id']),'post','onsubmit="return(fmChk(this))"'); ?>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" class="tableStyle_1">
		<tbody>
			<tr>
				<td colspan="3">
				<h2 class="margin_t pad_1em">Write an inquiry<a class="fr" href="javascript:void(window.open('/livezilla/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))">
<?php echo zen_image($template->get_template_dir('help.gif', DIR_WS_TEMPLATE, $current_page_base,'images/button'). '/help.gif') ?>			
	  </a></h2>
				
				<h2 class="margin_t pad_1em red">

				<?php echo $product_info->fields['products_name']; ?></h2>
				</td>
			</tr>
			<?php
  				if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
			?>
				<tr>
					<div class="success_box"><?php echo TEXT_SUCCESS; ?></div>

					<div class="g_t_c pad_10px"><a href=javascript:window.opener=null;window.close()>Close</a></div>
				</tr>

			<?php
 				 } else {
			?>
			<tr>
			<?php
				// show dropdown if set
    				if (CONTACT_US_LIST !=''){
				?>
				<td width="111" class="b g_t_r pad_r_5px"><?php echo SEND_TO_TEXT; ?><span class="red">*</span></td>
				<td colspan="2" class="g_t_l"><?php echo zen_draw_pull_down_menu('send_to',  $send_to_array, 'id=\"send-to\"'); ?></td>
				<br class="clear" />
				<?php
    					}
				?>
			</tr>
			<tr>
				<td width="111" class="b g_t_r pad_r_5px">Full name<span class="red">*</span></td>
				<td colspan="2" class="g_t_l"><?php echo zen_draw_input_field('contactname', $name, ' size="30" id="contactname" class="input_box" chkname="Your Name" chkrule="nnull"'); ?></td>
			</tr>
			<tr>
				<td class="b g_t_r pad_r_5px">E-mail address<span class="red">*</span></td>
				<td colspan="2" class="g_t_l"><?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="30" id="email-address" class="input_box" chkname="Email" chkrule="nnull/eml"') ; ?></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td style="padding: 2px 5px;" colspan="2" class="g_t_l">Please enter your valid email address. Thank you.</td>
			</tr>
			<tr>
				<td class="b g_t_r pad_r_5px">Country/Region</td>
				<td colspan="2" class="g_t_l">
					<?php echo zen_get_country_list('zone_country_id', $account->fields['entry_country_id'], 'id="country" ' . '  onchange="update_zone(this.form);" class="l_select" chkname="Country / Region" chkrule="isselect"  id="country"'); ?>
				</td>
			</tr>
			<tr>
				<td class="b g_t_r pad_r_5px">Quantity<span class="red">*</span></td>
				<td colspan="2" class="g_t_l"><?php echo zen_draw_input_field('quantity', ($error ? $_POST['quantity'] : $quantity), ' size="30" id="quantity" class="input_box" chkname="quantity" chkrule="nnull"') ; ?></td>
			</tr>
			<tr>
				<td valign="top" class="b g_t_r pad_r_5px">Inquiry<span class="red">*</span></td>
				<td colspan="2" class="g_t_l">
				  <?php echo '<br/>'.zen_draw_textarea_field('enquiry', '5', '5', '', 'id="enquiry" class="inp inq_win gray" style="height:80px;" chkname="review" chkrule="nnull/max1000"'); ?></textarea>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td colspan="2"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></td>
			</tr>
			<?php
  				}
			?>
		</tbody></table>
	</form>
</div></td>
</tr>
</tbody>
</table>
</div>
</div>
</body>